package com.letoken.platform.repo.repo.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.letoken.platform.repo.admin.req.config.QueryAddressNodeReq;
import com.letoken.platform.repo.admin.res.config.QueryNodeAddressListRes;
import com.letoken.platform.repo.admin.res.config.QueryNodeAddressRes;
import com.letoken.platform.repo.app.res.settings.QueryAppNodeAddressListRes;
import com.letoken.platform.repo.repo.po.AppChainNode;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 网络节点配置 Mapper 接口
 * </p>
 *
 * @author 作者
 * @since 2023-02-01
 */
public interface AppChainNodeMapper extends BaseMapper<AppChainNode> {

    Page<QueryNodeAddressListRes> queryNodeAddressList(Page<QueryNodeAddressListRes> page, @Param("req") QueryAddressNodeReq req);

    QueryNodeAddressRes queryNodeAddressById(@Param("id") Integer id);

    List<QueryAppNodeAddressListRes> chainNodeAddressList(@Param("type") Integer type);
}
